package com.spsy.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spsy.system.mapper.TShopMapper;
import com.spsy.system.domain.TShop;
import com.spsy.system.service.ITShopService;

/**
 * 尚品商云Service业务层处理
 * 
 * @author spsy
 * @date 2024-10-18
 */
@Service
public class TShopServiceImpl implements ITShopService 
{
    @Autowired
    private TShopMapper tShopMapper;

    /**
     * 查询尚品商云
     * 
     * @param id 尚品商云主键
     * @return 尚品商云
     */
    @Override
    public TShop selectTShopById(Long id)
    {
        return tShopMapper.selectTShopById(id);
    }

    /**
     * 查询尚品商云列表
     * 
     * @param tShop 尚品商云
     * @return 尚品商云
     */
    @Override
    public List<TShop> selectTShopList(TShop tShop)
    {
        return tShopMapper.selectTShopList(tShop);
    }

    /**
     * 新增尚品商云
     * 
     * @param tShop 尚品商云
     * @return 结果
     */
    @Override
    public int insertTShop(TShop tShop)
    {
        return tShopMapper.insertTShop(tShop);
    }

    /**
     * 修改尚品商云
     * 
     * @param tShop 尚品商云
     * @return 结果
     */
    @Override
    public int updateTShop(TShop tShop)
    {
        return tShopMapper.updateTShop(tShop);
    }

    /**
     * 批量删除尚品商云
     * 
     * @param ids 需要删除的尚品商云主键
     * @return 结果
     */
    @Override
    public int deleteTShopByIds(Long[] ids)
    {
        return tShopMapper.deleteTShopByIds(ids);
    }

    /**
     * 删除尚品商云信息
     * 
     * @param id 尚品商云主键
     * @return 结果
     */
    @Override
    public int deleteTShopById(Long id)
    {
        return tShopMapper.deleteTShopById(id);
    }
}
